package com.zjq.designpatterns.struct.flyweight.code;/*
 * 版权信息: 北京千⾥马网信科技有限公司</br>
 * Copyright ©2008-2018. All rights reserved. 京ICP备16007318号
 */

/**
 * @author jessie
 * @version 1.0
 * @date 2021/1/23
 */
public class Manager implements Employee{
    @Override
    public void report() {
        System.out.println(reportContent);
    }
    //不管外部怎么传值，这个值都不会变，所以是内部状态，他不随外部传的department变化而变化
    private String title = "部门经理";
    //department这个属性的状态是依赖于外部，所以是外部状态
    private String department;
    private String reportContent;

    public Manager(String department) {
        this.department = department;
    }

    public void setReportContent(String reportContent) {
        this.reportContent = reportContent;
    }
}
